package com.jiuyin.dianjing.constant;

import com.jiuyin.dianjing.BuildConfig;
import com.jiuyin.dianjing.db.table.SearchHistoryColumn;

/**
 * <pre>
 * Description: 常量内容
 * File: HelperConstant.java
 * Author: steven
 * Create: 2019/10/30 10:42
 * </pre>
 */
public final class HelperConstant {

    public final static String PROGRAM_APP_ID = BuildConfig.APPLICATION_ID;
    /**
     * 日志后缀和路径
     */
    public final static String LOG_DIR_NAME = "log";

    public final static String FILE_PREFIX = ".log";
    /**
     * 崩溃日志文件夹名
     */
    public final static String CRASH_DIR_NAME = "crash";

    /**
     * Action
     */

    /**
     * intent extra key
     */
    public final static String EXTRA_KEY_SEARCH_SUGGEST = "search_suggest";


    public static final String TAG = "jiuyin";
    /**
     * 上传几条
     */
    public final static int OFFICE_LIMIT_NUM = 1;
    public final static String API_HELPER_LONG_URL_END_KEY = "/";


    /**
     * data type
     */
    public final static int TYPE_ORDER = 0X1 << 2;
    public final static int TYPE_ORDER_ITEM = 0X1 << 3;
    /**
     * provider
     */
    public final static String PROVIDER_AUTHORITY = BuildConfig.APPLICATION_ID;
    public final static String CONTENT_URI_SEARCH_HISTORY = "content://" + PROVIDER_AUTHORITY + API_HELPER_LONG_URL_END_KEY + SearchHistoryColumn.TABLE_NAME;
    public final static String CONTENT_TYPE = "vnd.android.cursor.dir/vnd.com.jtpay.payresulthelper";
    public final static String CONTENT_TYPE_ITEM = "vnd.android.cursor.item/com.jtpay.payresulthelper";
    /**
     * DB
     */
    public final static String DB_TREATED_DEF = "0";
    public final static String DB_TREATED_UP_DOING = "1";
    public final static String DB_TREATED_UP_FINISHED = "2";
    public final static String DB_TREATED_UP_FAILED = "3";
    public final static String DB_TREATED_UP_ERROR = "4";
    public final static String ORDER_BY_DESC = " DESC";
    public final static String ORDER_BY_ASC = " ASC";
    /**
     * 默认位置
     */
    public static final int POSITION_DEFAULT = -1;
    /**
     * 举办方式
     * 自主举办
     */
    public static final String MATCH_WAY_INDEPENDENT_HOST = "0";
    /**
     * 举办方式
     * 需要赞助
     */
    public static final String MATCH_WAY_SPONSORED = "1";
    /**
     * 赛事类型
     * 高校赛
     */
    public static final String MATCH_TYPE_CAMPUS = "0";
    /**
     * 赛事类型
     * 城市赛
     */
    public static final String MATCH_TYPE_CITY = "1";
    /**
     * 赛事类型
     * 公开赛
     */
    public static final String MATCH_TYPE_OPEN_TOURNAMENT = "2";
    /**
     * 参赛方式
     * 个人
     */
    public static final String MATCH_TYPE_PERSON = "0";
    /**
     * 参赛方式
     * 团队
     */
    public static final String MATCH_TYPE_TEAM = "1";
    /**
     * 日志删除的天数,默认是5天
     */
    private final static int LOG_DELETE_DAYS_DEF = 5;
    public final static int LOG_DELETE_DAYS = LOG_DELETE_DAYS_DEF;

}


